package com.atde._05_behavioral_design_patterns.responsibilitychain.oa;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._05_behavioral_design_patterns.responsibilitychain.oa
 * @Author: Del
 * @CreateTime: 2025-06-30  16:52
 * @Description: 职责链模式 --- 具体的处理者之一
 * @Version: 1.0
 */
public class ViceShcoolMasterApprover extends Approver{

    public ViceShcoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() >  10000 && request.getPrice() <= 30000) {
            System.out.println("请求编号：" + request.getId() + "被" + this.name + "处理");
        } else {
            this.successor.processRequest(request);
        }
    }
}
